
#include "test1.h"
#include "test2.h"
#include "test3.h"

#include <sys/types.h>
#include <unistd.h>


int main( int, char **argv ) {

    try {
        
        tenacitas::log::text_file::config( argv[0],
                                           static_cast<int64_t>( getpid( ) ), 
                                           tenacitas::log::level::trace,
                                           30 * 1024 );
        //        tenacitas::balance_line::test1::run( );
        tenacitas::balance_line::test2::run( );
        //tenacitas::balance_line::test3::run( );
    }
    catch( tenacitas::exception::exception & l_ex ) {
        std::cout << "ERROR tenacitas: " << l_ex.what( ) << std::endl;
    }
    catch( std::exception & l_ex ) {
        std::cout << "ERROR c++: " << l_ex.what( ) << std::endl;
    }
    catch( ... ) {
        std::cout << "ERROR unknown" << std::endl;
    }



    

    // std::cout << "Deleting log files";
    // std::remove( "*.log" );
    // std::remove( "*.END" );

}
